/*
 * @Author: atony2099
 * @Date: 2019-02-14 12:14:24
 * @Last Modified by: atony2099
 * @Last Modified time: 2019-02-14 15:34:57
 */

'use strict';
module.exports = app => {
  const mongoose = app.mongoose;
  const Schema = mongoose.Schema;
  const ObjectId = Schema.ObjectId;

  const SignSchema = new Schema({
    __v: {
      type: Number,
      select: false,
    },
    createAt: {
      type: Date,
      default: new Date(),
    },
    userId: {
      type: ObjectId,
      ref: 'User',
    },
  });

  return mongoose.model('Sign', SignSchema);
};
